package com.itheima.CharStream.键录名密写;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

public class charoutputMM {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入用户名：");
        String username = sc.next();
        System.out.println("请输入密码：");
        String userPw = sc.next();

        FileWriter fw = new FileWriter("day623-24CharStream\\xx.txt");
            fw.write(username);
            fw.write(System.lineSeparator());
            fw.write(userPw);

            fw.close();
    }
}
